<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>日报生成器</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f5f5f5;
        }
        .container {
            max-width: 800px;
            margin: 0 auto;
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        h1 {
            color: #333;
            margin-bottom: 20px;
        }
        .project-section {
            margin-bottom: 20px;
        }
        button {
            background-color: #4CAF50;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }
        button:hover {
            background-color: #45a049;
        }
        #projectList {
            margin-top: 20px;
        }
        .project-item {
            padding: 10px;
            border: 1px solid #ddd;
            margin-bottom: 10px;
            border-radius: 4px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .project-item .delete-btn {
            background-color: #dc3545;
            padding: 5px 10px;
            margin-left: 10px;
            font-size: 12px;
        }
        .project-item .delete-btn:hover {
            background-color: #c82333;
        }
        .project-path {
            flex-grow: 1;
            margin-right: 10px;
            word-break: break-all;
        }
        .project-path strong {
            font-size: 16px;
            color: #2c3e50;
        }
        .project-path small {
            display: block;
            color: #666;
            margin-top: 3px;
        }
        .project-path small.path {
            color: #999;
            font-family: monospace;
            font-size: 12px;
        }
        .date-range {
            margin: 20px 0;
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .date-range input[type="date"] {
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }
        .date-range label {
            font-size: 14px;
            color: #666;
        }
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
        }
        .modal-content {
            position: relative;
            background-color: white;
            margin: 15% auto;
            padding: 20px;
            width: 80%;
            max-width: 500px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        .form-group {
            margin-bottom: 15px;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #333;
        }
        .form-group input, .form-group textarea {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            box-sizing: border-box;
        }
        .form-group textarea {
            height: 100px;
            resize: vertical;
        }
        .modal-buttons {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 20px;
        }
        .modal-buttons button.cancel {
            background-color: #6c757d;
        }
        .modal-buttons button.cancel:hover {
            background-color: #5a6268;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>日报生成器</h1>
        <div class="project-section">
            <button id="addProject">添加项目文件夹</button>
            <div id="projectList"></div>
        </div>
        <div class="date-range">
            <label>时间范围：</label>
            <input type="date" id="startDate">
            <label>至</label>
            <input type="date" id="endDate">
        </div>
        <button id="generateReport">生成日报</button>
    </div>

    <!-- 项目信息输入对话框 -->
    <div id="projectModal" class="modal">
        <div class="modal-content">
            <div class="form-group">
                <label>项目名称</label>
                <input type="text" id="projectName" placeholder="请输入项目名称">
            </div>
            <div class="form-group">
                <label>项目描述</label>
                <textarea id="projectDescription" placeholder="请输入项目描述"></textarea>
            </div>
            <div class="modal-buttons">
                <button class="cancel" id="cancelProject">取消</button>
                <button id="confirmProject">确定</button>
            </div>
        </div>
    </div>

    <script src="renderer.js"></script>
</body>
</html> 